package io.lkt.modules.sys.dao;

import io.lkt.modules.sys.entity.ArticleLookDetailLogDBEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lkt.modules.sys.entity.HotVideoInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 素材点击日志
 *
 * @author xss
 * @email dustwas@163.com
 * @date 2021-02-22 09:59:38
 */
@Mapper
public interface ArticleLookDetailLogDBDao extends BaseMapper<ArticleLookDetailLogDBEntity> {

    List<ArticleLookDetailLogDBEntity> getUserLookInfo(Map<String, Object> params);

    int getUserLookInfoTotal(Map<String, Object> params);

    int getUserLookCount(@Param("userId") Integer userId, @Param("gzhCode") String gzhCode);

    List<HotVideoInfo> getHotVideo();
}
